/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tardisdatadepositor;


import java.io.File;

public class DatasetInfo
{
	public DatasetInfo(String dir, String description, String crystalName, String diffractometerType,
			float resolutionLimit, String xraySource, String mosaicSpread, String chiAngle)
	{
		super();
		this.chiAngle = chiAngle;
		this.crystalName = crystalName;
		this.diffractometerType = diffractometerType;
		this.dir = dir;
		this.mosaicSpread = mosaicSpread;
		this.description = description;
		this.resolutionLimit = resolutionLimit;
		this.xraySource = xraySource;
		this.rawImages = true;

	}

	public DatasetInfo(String description, String dir)
	{
		super();
		this.description = description;
		this.dir = dir;
		this.rawImages = false;
	}

	private String description;

	private String dir;

	private String crystalName;

	private float resolutionLimit;

	private String diffractometerType;

	private String xraySource;

	private String mosaicSpread;

	private String chiAngle;

	private boolean rawImages;

	private String trdXML;

	public boolean isRawImages()
	{
		return rawImages;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public String getDir()
	{
		return dir;
	}

	public void setDir(String dir)
	{
		this.dir = dir;
	}

	public String getCrystalName()
	{
		return crystalName;
	}

	public void setCrystalName(String crystalName)
	{
		this.crystalName = crystalName;
	}

	public float getResolutionLimit()
	{
		return resolutionLimit;
	}

	public void setResolutionLimit(float resolutionLimit)
	{
		this.resolutionLimit = resolutionLimit;
	}

	public String getDiffractometerType()
	{
		return diffractometerType;
	}

	public void setDiffractometerType(String diffractometerType)
	{
		this.diffractometerType = diffractometerType;
	}

	public String getXraySource()
	{
		return xraySource;
	}

	public void setXraySource(String xraySource)
	{
		this.xraySource = xraySource;
	}

	public String getMosaicSpread()
	{
		return mosaicSpread;
	}

	public void setMosaicSpread(String mosaicSpread)
	{
		this.mosaicSpread = mosaicSpread;
	}

	public String getChiAngle()
	{
		return chiAngle;
	}

	public void setChiAngle(String chiAngle)
	{
		this.chiAngle = chiAngle;
	}

	public void setTrdXML(String trdXML)
	{
		this.trdXML = trdXML;
	}

	public String getTrdXML()
	{
		return trdXML;
	}

    @Override
    public String toString()
    {
        if(isRawImages())
        {
            return "Raw Dataset";
        }
        else
        {
            return "Ancillary Dataset";
        }
    }
}